Avoid segfaults in Rmail-MIME
authorEli Zaretskii <eliz@gnu.org>
Wed, 9 Oct 2024 13:21:08 +0000 (16:21 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 9 Oct 2024 13:22:52 +0000 (16:22 +0300)
commitf520008744b1eb71accded4108888d1f2055402e
tree83aab5d287c73022a49b292ebc5dc953b7aff5eb
parent6a5c2edd84fc3fdb879e4a19ea182c2a4d385833
Avoid segfaults in Rmail-MIME

Rmail-MIME decodes text of email, including removal of
CR characters, but that can segfault if the text of some
MIME part is empty.
* src/coding.c (decode_coding_raw_text):
* lisp/mail/rmailmm.el (rmail-mime-insert-decoded-text): Don't
attempt to decode empty text region.
lisp/mail/rmailmm.el
src/coding.c